package com.zhf.servlet.impl;

import com.zhf.dao.ArticleDao;
import com.zhf.domain.Article;
import com.zhf.servlet.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ArticleServiceImpl implements ArticleService {

    @Autowired
    private ArticleDao articleDao;

    public void addArticle(Article article) {
        articleDao.addArticle(article);
        int i = 1 / 0;

    }
}
